package com.ruoyi.db.mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import com.ruoyi.db.domain.FormInfoProfit;
import com.ruoyi.db.model.param.FormInfoProfitParam;
import org.apache.ibatis.annotations.Param;

/**
 * profitMapper接口
 * 
 * @author ruoyi
 * @date 2022-11-23
 */
public interface FormInfoProfitMapper 
{
    /**
     * 查询profit
     * 
     * @param id profit主键
     * @return profit
     */
    public FormInfoProfit selectFormInfoProfitById(Long id);

    /**
     * 查询profit列表
     * 
     * @param formInfoProfit profit
     * @return profit集合
     */
    public List<FormInfoProfit> selectFormInfoProfitList(FormInfoProfit formInfoProfit);

    /**
     * 查询profit列表
     *
     * @param formInfoProfit profit
     * @return profit集合
     */
    public List<Map<String, Object>> selectFormInfoProfitListMap(FormInfoProfitParam formInfoProfit);

    /**
     * 新增profit
     * 
     * @param formInfoProfit profit
     * @return 结果
     */
    public int insertFormInfoProfit(FormInfoProfit formInfoProfit);

    /**
     * 修改profit
     * 
     * @param formInfoProfit profit
     * @return 结果
     */
    public int updateFormInfoProfit(FormInfoProfit formInfoProfit);

    /**
     * 删除profit
     * 
     * @param id profit主键
     * @return 结果
     */
    public int deleteFormInfoProfitById(Long id);

    /**
     * 批量删除profit
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFormInfoProfitByIds(String[] ids);

    Map<String, Object> selectFormInfoProfitTotalMap(FormInfoProfitParam formInfoProfit);

    List<Map<String, Object>> selectProfitTypeMapList();

    List<Map<String, Object>> getProfirInfoList(@Param("dateInfo") String dateInfo);
}
